//
//  BiliSCHeaderItem.swift
//  Landmarks
//
//  Created by 温哲 on 2021/2/10.
//

import SwiftUI

struct BiliSCHeaderItem: View {
    var name: String
    var image: Image
    var imageColor: Color
    var size: CGSize
    var body: some View {
        VStack {
//            Spacer()
            image.resizable().foregroundColor(imageColor).frame(width: size.width, height: size.height)
            Text(name)

//            Spacer()
        }
    }
}

struct BiliSCHeaderItem_Previews: PreviewProvider {
    static var previews: some View {
        BiliSCHeaderItem(name: "离线缓存", image: Image("msg_1"), imageColor: Color.red, size: CGSize(width: 30, height: 30))
    }
}
